import {Navigate} from 'react-router-dom'
import AboutIndex from "../../view/about/AboutIndex";
import ResumeIndex from "../../view/about/resume/ResumeIndex";
import PublicIndex from "../../view/about/public/PublicIndex";
import LayoutIndex from "../../layout/LayoutIndex";
import KeepAlive from 'react-activation'

const aboutRoute =  [
    {
    element: <LayoutIndex /> ,
    meta: {
        title: '关于我们'
    },
    children: [
            {
                path: '/about',
                element: <KeepAlive><AboutIndex /></KeepAlive>,
                meta: {title: '公司简介'},
                children: [
                    {path: '', element: <Navigate to='/about/resume'/>, meta: {title: '公司简介'}},
                    {path: 'public', element: <KeepAlive><PublicIndex /></KeepAlive>, meta: {title: '公司公示'}},
                    {path: 'resume', element: <KeepAlive><ResumeIndex /></KeepAlive>, meta: {title: '公司简介'}}
                ]
            }

        ]
    }
]

export default aboutRoute;